﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace EnCor.Security
{
    public class SecurityConfig : ConfigurationElement
    {
        private const string STR_Authentication = "authentication";
        private const string STR_IdentityMapgers = "identityMapgers";
        private const string STR_Authorization = "authorization";

        [ConfigurationProperty(STR_Authentication)]
        public AuthenticationConfig AuthenticationConfig
        {
            get
            {
                return (AuthenticationConfig)this[STR_Authentication];
            }
        }

        [ConfigurationProperty(STR_IdentityMapgers)]
        public IdentityMapperConfigCollection IdentityMappers
        {
            get
            {
                return (IdentityMapperConfigCollection)this[STR_IdentityMapgers];
            }
        }

        [ConfigurationProperty(STR_Authorization)]
        public AuthorizationConfig AuthorizationConfig
        {
            get
            {
                return (AuthorizationConfig)this[STR_Authorization];
            }
        }
    }
}
